package com.jnzc.ocr.serv.system.api.impl;

import com.jnzc.ocr.serv.system.api.SysRegionApi;
import com.jnzc.ocr.serv.system.service.SysRegionService;
import com.jnzc.ocr.serv.system.vo.SysRegionVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author zhangcm
 * @version 1.0, 2017-10-15
 */
@RestController
public class SysRegionApiImpl implements SysRegionApi {

    @Autowired
    private SysRegionService sysRegionService;

    @Override
    public List<SysRegionVo> list(Integer maxLevel) {
        return sysRegionService.list(maxLevel);
    }
}
